package classtest;

import classtst_domain.Phone1;

public class Demo1 {
    public static void main(String[] args) {
        // 根据类创建一个实例对象
        Phone1 phone1 = new Phone1();
        // 调用对象
        String brand = phone1.brand;
        System.out.println(brand);
        int price = phone1.price;
        System.out.println(price);
        String color = phone1.color;
        System.out.println(color);
        // 调用功能
        phone1.call();
        phone1.sendMessage();
    }
}
